<?php require_once 'cabecalho.php'; ?>
<?php $textos   = DB::fetchTodos("*","textos"); ?>
<?php $destaque = DB::fetchTodos("*","slider"); ?>
<?php $elenco   = DB::fetchTodos("*","elenco"); ?>
<?php $horario  = DB::find(8,"textos"); ?>
<?php $servico  = DB::find(8,"textos"); ?>

	<div class="separator top-separator content left"></div>
	<div class="separator top-separator content right"></div>

	<div id="main" class="content">
		
		<article class="article">
				
			<h1 class="article-title styled-header">Bem-vindo!</h1>

			<div class="article-body">
				<?php echo $textos[0]["texto"]; ?>
				<h2>Equipe Art&iacute;stica</h2>
				<div class="gallery">
					<ul class="clearfix">
						<?php foreach($elenco as $v): ?>
						<li style="list-style: none;">
							<a href="admin/<?php echo $v["arquivo"]; ?>" rel="lightbox" title="Image Title">
							<img width="105px" height="140px" src="admin/<?php echo $v["arquivo"]; ?>" alt="Image Title" /></a>
						</li>
						<?php endforeach; ?>
					</ul>
				</div>
			</div>
                    

		</article>
		
	</div><!-- end main -->

	<div class="sidebar content">
		<div class="module ">
			<h3>&nbsp;</h3>
			
			<div id="slider" class="nivoSlider">
				<?php foreach($destaque as $v): ?>
				<img width="430" height="300" style="width: 430px; height: 300px;" src="admin/<?php echo $v["arquivo"]; ?>" title="#caption<?php echo $v["id"]; ?>" alt="" />
				<?php endforeach; ?>
			</div>
			
			<?php foreach($destaque as $v): ?>
			<div id="caption<?php echo $v["id"]; ?>" class="nivo-html-caption">
				<h4><a href="#"><?php echo $v["titulo"]; ?></a></h4>
				<p><?php echo $v["comentario"]; ?></p>
			</div>
			<?php endforeach; ?>
		</div>
		
		<div class="separator clear"></div>
		
		<div class="module ">
			<h3><span class="ribbon">Horário de Funcionamento</span></h3>
			<?php echo $horario["texto"]; ?>
		</div>
		
		<div class="module ">
			<h3><span class="ribbon">Cadastre-se para receber programação da casa</span></h3>
			<form action='enviar-newsletter.php' method="post">
				<input type='text' name='nome' value='Nome' /><br />
				<input type='text' name='email' value='E-mail' /><br />
				<input type='text' name='telefone' value='Telefone' /><br />
				<input type='submit' value='Registrar' />
			</form>
		</div>
		
		<div class="module ">
			<h3><span class="ribbon">Reserva</span></h3>
			<form action="enviar-reserva.php" method="post" name="emailForm" id="emailForm" class="contact-form form-validate">
				
				<input type="text" name="name" id="contact_name" size="30" class="hidevalue inputbox" value="Nome" /><br />

				<input type="text" name="data" id="data" size="30" class="hidevalue inputbox required" value="Data" /><br />
				<input type="text" id="qtd" name="qtd" size="30" value="Número de Pessoas" class="required hidevalue" maxlength="100" /><br />
				<input type="text" id="contact_email" name="email" size="30" value="E-mail" class="required email hidevalue" maxlength="100" /><br />
				<input type="text" id="telefone" name="telefone" size="30" value="Telefone" class="required hidevalue" maxlength="100" /><br />
				
				<br />
				<br />
				
				<button name="sendMail" class="button validate" type="submit">Enviar</button>

			</form>
		</div>
		
	</div><!-- end sidebar -->
								
<?php echo require_once 'rodape.php';?>